<?php
/**
 * @TABLE "user_friend_request"
 * @JOIN_FROM "user_id_to < user.id"
 * @JOIN_FROM "user_id_from < user.id"
 */
class BaseUserFriendRequest extends Abstract_PluginEntityManager_Entity
{
	/**
	 * @COLUMN "user_id_to"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 */
	public $user_id_to;

	/**
	 * @COLUMN "user_id_from"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 */
	public $user_id_from;

	/**
	 * @COLUMN "user_ip_from"
	 * @TYPE "varchar"
	 * @LENGTH "40"
	 * @NOT_NULL
	 */
	public $user_ip_from;

	/**
	 * @COLUMN "status"
	 * @TYPE "enum"
	 * @LENGTH "'pending','accepted','refused'"
	 * @NOT_NULL
	 * @DEFAULT "pending"
	 */
	public $status;

	/**
	 * @COLUMN "date_added"
	 * @TYPE "timestamp"
	 * @NOT_NULL
	 * @DEFAULT "CURRENT_TIMESTAMP"
	 */
	public $date_added;
}
?>